<template>
  <slot></slot>
  <p>{{message}}</p>
  <p>{{count}}</p>
  <button @click="addCount">增加计数</button>
</template>

<script setup>
import {ref} from "vue";

defineProps(['message'])

const count = ref(0);

function addCount() {
  count.value++;
}
</script>

<style scoped>

</style>
